-- GENERATED SPELL FOR [Overseer Ripsaw] --


function spell0_21499(pUnit, Event) --@Gushing Wound,n/a--
pUnit:FullCastSpellOnTarget(35321,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21499', 25000, 1)
end

function spell1_21499(pUnit, Event) --@Saw Blade,n/a--
pUnit:FullCastSpellOnTarget(32735,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21499', 500, 1)
end

function Sorts_21499(pUnit, Event)
local choix_sorts_21499 = math.random(0, 1)
if choix_sorts_21499 == 0 then
pUnit:RegisterEvent('spell0_21499', 1, 1)
end
if choix_sorts_21499 == 1 then
pUnit:RegisterEvent('spell1_21499', 1, 1)
end
end

function mob21499_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21499', math.random(1500, 3000), 1)
end

function mob21499_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21499_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21499_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21499, 1, 'mob21499_Action')
RegisterUnitEvent(21499, 2, 'mob21499_Leave')
RegisterUnitEvent(21499, 3, 'mob21499_Kill')
RegisterUnitEvent(21499, 4, 'mob21499_Die')
